Skip to content

Conversation

@NickHardeman
Copy link
Contributor

ofShadow
Rename isGlCullingEnabled() & setGlCullingEnabled() to isCullingEnabled() && setCullingEnabled(): #8411

ofCubeMap and ofShadow, make private by wrapping in of::priv.
Added more comments and made a few more functions private to reduce confusion.
#8409

std::shared_ptr<ofCubeMap::Data> cubeMap = ofCubeMapsData()[i].lock();
for(size_t i=0; i<of::priv::ofCubeMapsData().size(); i++) {
if(!of::priv::ofCubeMapsData()[i].expired()) {
std::shared_ptr<of::priv::ofCubeMapData> cubeMap = of::priv::ofCubeMapsData()[i].lock();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry - should have chimed in sooner, not sure about of::priv::ofCubeMapData
Will take a proper look but prefer: ofCubeMap::Data in general.

@ofTheo ofTheo merged commit 168a647 into openframeworks:master Apr 7, 2025
18 checks passed
};

std::vector<std::weak_ptr<ofShadow::Data> > & ofShadowsData();
//namespace of{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can probably remove this now.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch, submitted another PR since this was already merged #8441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants